package expression;

import java.util.LinkedList;

public class FnStringConstant extends Fn implements FnString {

	private String value;

	public FnStringConstant(String value) {
		this.value = value;
	}

	@Override
	protected boolean isAcceptableChild(Fn fn) {
		return false;
	}
	
	@Override
	protected boolean isAcceptableParam(Object o) {
		return false;
	}

	@Override
	public int getNParam() {
		return 0;
	}

	@Override
	protected int precedence() {
		return Integer.MAX_VALUE;
	}

	@Override
	protected Object value(LinkedList<Object> param) {
		return null;
	}

	public String value() {
		return value;
	}

	@Override
	public String symbol() {
		return null;
	}

	@Override
	protected String[] notation() {
		return new String[]
		{ "\"" + value + "\"", "", "" };
	}
}
